import React, { Component, Children } from 'react'

console.log(Children)

export default class Childrens extends Component {
    render() {
        const { children } = this.props
        console.log(Children.only(children))
        return (
            <div>
                ChildrenChildren --- 
                <ul>
                    {
                        Children.map(children, (item) => {
                            return item
                        })
                    }
                    {/* {
                        children.map((item, index) => {
                            return item
                        })
                    } */}
                </ul>
            </div>
        )
    }
}
